package main

import (
	"fmt"
	"strings"
)

func makeSuffix(suffix string) func(name string) string {
	
	return func(name string) string {
		if !strings.HasSuffix(name, suffix) {
			return name + suffix
		}
		return name
	}
}

func main() {

/*	var b int
	d := 23.56
	fmt.Println(strconv.FormatFloat(d, 'f', 10, 64))
	fmt.Println(b)*/

	f := makeSuffix(".jpg")
	fmt.Println("name=", f("picture"))

}
